<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
</head>
<body>

<form th:action="@{/login.do}" method="POST">
    <h3>欢迎登录系统</h3>
    <div><label> 用户名 : <input type="text" name="loginName"/></label></div>
    <div><label> 密　码 : <input type="password" name="loginPassword"/></label></div>
    <div><input type="submit" value="登录"/></div>
</form>

<span style="color: red" th:if="${param.error}">
    用户名或密码错误
</span>
<span style="color: green" th:if="${param.logout}">
    您已注销成功
</span>

</body>
</html>